//Menu.java
//Tela do Menu do sistema
package visao;

/**
 * @author Diego Heusser
 * @author Eder Schramm
 */
public class Menu extends javax.swing.JFrame {

    public Menu() {
        initComponents();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        mCadastro = new javax.swing.JMenu();
        miMotorista = new javax.swing.JMenuItem();
        miAutomovel = new javax.swing.JMenuItem();
        mConsulta = new javax.swing.JMenu();
        miConMotorista = new javax.swing.JMenuItem();
        miConAutomovel = new javax.swing.JMenuItem();
        mRelatorio = new javax.swing.JMenu();
        miRelMotorista = new javax.swing.JMenuItem();
        miRelAutomovel = new javax.swing.JMenuItem();
        mUtilitario = new javax.swing.JMenu();
        miCriarTabelas = new javax.swing.JMenuItem();
        miApagarDados = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Menu");
        setAlwaysOnTop(true);

        mCadastro.setText("Cadastro");

        miMotorista.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.ALT_MASK));
        miMotorista.setText("Motorista");
        mCadastro.add(miMotorista);

        miAutomovel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK));
        miAutomovel.setText("Automóvel");
        mCadastro.add(miAutomovel);

        jMenuBar1.add(mCadastro);

        mConsulta.setText("Consultas");

        miConMotorista.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.CTRL_MASK));
        miConMotorista.setText("Consultas de Motorista");
        mConsulta.add(miConMotorista);

        miConAutomovel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        miConAutomovel.setText("Consultas de Automóvel");
        mConsulta.add(miConAutomovel);

        jMenuBar1.add(mConsulta);

        mRelatorio.setText("Relatórios");

        miRelMotorista.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.SHIFT_MASK));
        miRelMotorista.setText("Motorista");
        mRelatorio.add(miRelMotorista);

        miRelAutomovel.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.SHIFT_MASK));
        miRelAutomovel.setText("Automóvel");
        mRelatorio.add(miRelAutomovel);

        jMenuBar1.add(mRelatorio);

        mUtilitario.setText("Utilitários");

        miCriarTabelas.setText("Criar Tabelas");
        mUtilitario.add(miCriarTabelas);

        miApagarDados.setText("Apagar Dados");
        mUtilitario.add(miApagarDados);

        jMenuBar1.add(mUtilitario);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 279, Short.MAX_VALUE)
        );

        setSize(new java.awt.Dimension(416, 338));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu mCadastro;
    private javax.swing.JMenu mConsulta;
    private javax.swing.JMenu mRelatorio;
    private javax.swing.JMenu mUtilitario;
    public javax.swing.JMenuItem miApagarDados;
    public javax.swing.JMenuItem miAutomovel;
    public javax.swing.JMenuItem miConAutomovel;
    public javax.swing.JMenuItem miConMotorista;
    public javax.swing.JMenuItem miCriarTabelas;
    public javax.swing.JMenuItem miMotorista;
    public javax.swing.JMenuItem miRelAutomovel;
    public javax.swing.JMenuItem miRelMotorista;
    // End of variables declaration//GEN-END:variables
}
